package com.nubia.dao;

import com.nubia.entity.Shops;
import com.nubia.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminDao {

    //查看用户列表
    List<User> adminSelectAllUser();
    //管理员通过user_id删除用户
    int adminDleById (User user);

    //管理员查看商品
    List<Shops> adminSelectAllShops();

    //添加商品
    int adminInsertOneShop(Shops shops);

    //删除商品
    int adminDltShop(String shop_id);

    //修改商品
    int adminUpdShop(Shops shops);
}
